﻿using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.ComponentModel;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace SistemaAdministracion.Models.BaseClass
{
    [Table("liquidacion", Schema = "remuneracion")]
    public class Liquidacion
    {

        public Liquidacion()
        {
            this.DetalleLiquidacion = new HashSet<DetalleLiquidacion>();
        }

        [Column("idfichaempleado")]
        public int IdFichaEmpleado { get; set; }
        [Column("idperiodo")]
        public int IdPeriodo { get; set; }
        [Column("diastrabajados")]
        public int DiasTrabajados { get; set; }
        [Column("descprevision")]
        public string DescPrevision { get; set; }
        [Column("mtoprevision")]
        public float MtoPrevision { get; set; }
        [Column("descsalud")]
        public string DescSalud { get; set; }
        [Column("mtosalud")]
        public float MtoSalud { get; set; }
        [Column("hextras")]
        public float HExtras { get; set; }
        [Column("cargas")]
        public int Cargas { get; set; }
        [Column("mtoimponible")]
        public float MtoImponible { get; set; }
        [Column("mtotributable")]
        public float MtoTributable { get; set; }
        [Column("haberes")]
        public float Haberes { get; set; }
        [Column("descuentos")]
        public float Descuentos { get; set; }
        [Column("totalpagar")]
        public float TotalPagar { get; set; }
        [Column("fechaemision")]
        public DateTime FechaEmision { get; set; }


        public virtual PeriodoContable PeriodoContable { get; set; }
        public virtual FichaEmpleado FichaEmpleado { get; set; }
        public virtual ICollection<DetalleLiquidacion> DetalleLiquidacion { get; set; }

    }
}
